<?php

defined('_JEXEC') or die('Direct Access to this location is not allowed.');

$pretext = $params->get( 'pretext', '' );
$posttext = $params->get( 'posttext', '' );
$height = $params->get( 'height', '' );
$width = $params->get( 'width', '' );
$imagewidth = $params->get( 'imagewidth', '' );
$autorotate = $params->get( 'autorotate', '' );
$image1url = $params->get( 'image1url', '' );
$image1link = $params->get( 'image1link', '' );
$image1target = $params->get( 'image1target', '' );
$image1keywords = $params->get( 'image1keywords', '' );
$image1title = $params->get( 'image1title', '' );
$image2url = $params->get( 'image2url', '' );
$image2link = $params->get( 'image2link', '' );
$image2target = $params->get( 'image2target', '' );
$image2keywords = $params->get( 'image2keywords', '' );
$image2title = $params->get( 'image2title', '' );
$image3url = $params->get( 'image3url', '' );
$image3link = $params->get( 'image3link', '' );
$image3target = $params->get( 'image3target', '' );
$image3keywords = $params->get( 'image3keywords', '' );
$image3title = $params->get( 'image3title', '' );
$image4url = $params->get( 'image4url', '' );
$image4link = $params->get( 'image4link', '' );
$image4target = $params->get( 'image4target', '' );
$image4keywords = $params->get( 'image4keywords', '' );
$image4title = $params->get( 'image4title', '' );
$image5url = $params->get( 'image5url', '' );
$image5link = $params->get( 'image5link', '' );
$image5target = $params->get( 'image5target', '' );
$image5keywords = $params->get( 'image5keywords', '' );
$image5title = $params->get( 'image5title', '' );
$image6url = $params->get( 'image6url', '' );
$image6link = $params->get( 'image6link', '' );
$image6target = $params->get( 'image6target', '' );
$image6keywords = $params->get( 'image6keywords', '' );
$image6title = $params->get( 'image6title', '' );
$image7url = $params->get( 'image7url', '' );
$image7link = $params->get( 'image7link', '' );
$image7target = $params->get( 'image7target', '' );
$image7keywords = $params->get( 'image7keywords', '' );
$image7title = $params->get( 'image7title', '' );
$image8url = $params->get( 'image8url', '' );
$image8link = $params->get( 'image8link', '' );
$image8target = $params->get( 'image8target', '' );
$image8keywords = $params->get( 'image8keywords', '' );
$image8title = $params->get( 'image8title', '' );
$image9url = $params->get( 'image9url', '' );
$image9link = $params->get( 'image9link', '' );
$image9target = $params->get( 'image9target', '' );
$image9keywords = $params->get( 'image9keywords', '' );
$image9title = $params->get( 'image9title', '' );
$image10url = $params->get( 'image10url', '' );
$image10link = $params->get( 'image10link', '' );
$image10target = $params->get( 'image10target', '' );
$image10keywords = $params->get( 'image10keywords', '' );
$image10title = $params->get( 'image10title', '' );
$image11url = $params->get( 'image11url', '' );
$image11link = $params->get( 'image11link', '' );
$image11target = $params->get( 'image11target', '' );
$image11keywords = $params->get( 'image11keywords', '' );
$image11title = $params->get( 'image11title', '' );
$image12url = $params->get( 'image12url', '' );
$image12link = $params->get( 'image12link', '' );
$image12target = $params->get( 'image12target', '' );
$image12keywords = $params->get( 'image12keywords', '' );
$image12title = $params->get( 'image12title', '' );
$image13url = $params->get( 'image13url', '' );
$image13link = $params->get( 'image13link', '' );
$image13target = $params->get( 'image13target', '' );
$image13keywords = $params->get( 'image13keywords', '' );
$image13title = $params->get( 'image13title', '' );
$image14url = $params->get( 'image14url', '' );
$image14link = $params->get( 'image14link', '' );
$image14target = $params->get( 'image14target', '' );
$image14keywords = $params->get( 'image14keywords', '' );
$image14title = $params->get( 'image14title', '' );
$image15url = $params->get( 'image15url', '' );
$image15link = $params->get( 'image15link', '' );
$image15target = $params->get( 'image15target', '' );
$image15keywords = $params->get( 'image15keywords', '' );
$image15title = $params->get( 'image15title', '' );
$image16url = $params->get( 'image16url', '' );
$image16link = $params->get( 'image16link', '' );
$image16target = $params->get( 'image16target', '' );
$image16keywords = $params->get( 'image16keywords', '' );
$image16title = $params->get( 'image16title', '' );
$image17url = $params->get( 'image17url', '' );
$image17link = $params->get( 'image17link', '' );
$image17target = $params->get( 'image17target', '' );
$image17keywords = $params->get( 'image17keywords', '' );
$image17title = $params->get( 'image17title', '' );
$image18url = $params->get( 'image18url', '' );
$image18link = $params->get( 'image18link', '' );
$image18target = $params->get( 'image18target', '' );
$image18keywords = $params->get( 'image18keywords', '' );
$image18title = $params->get( 'image18title', '' );
$image19url = $params->get( 'image19url', '' );
$image19link = $params->get( 'image19link', '' );
$image19target = $params->get( 'image19target', '' );
$image19keywords = $params->get( 'image19keywords', '' );
$image19title = $params->get( 'image19title', '' );
$image20url = $params->get( 'image20url', '' );
$image20link = $params->get( 'image20link', '' );
$image20target = $params->get( 'image20target', '' );
$image20keywords = $params->get( 'image20keywords', '' );
$image20title = $params->get( 'image20title', '' );


$LiveSite 	= JURI::base();

$imagetotalwidths = 0;
$imagetotalwidths = $imagewidth;

if ($image1url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}
if ($image2url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}
if ($image3url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}
if ($image4url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	 
if ($image5url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image6url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image7url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image8url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image9url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image10url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image11url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image12url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image13url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image14url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image15url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image16url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}
if ($image17url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image18url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image19url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}	
if ($image20url != "") { 
$imagetotalwidths = $imagetotalwidths + $imagewidth;}

$mainframe->addCustomHeadTag('<style type="text/css">div#content_in {width:'.$imagetotalwidths.'px;}</style>');
?>
	

<script type="text/javascript">//<![CDATA[
document.write('<link href="<?php echo $LiveSite ?>/modules/mod_s5_image_scroller/s5_image_scroller/scroll.css" rel="stylesheet" type="text/css" media="screen" />');
//]]>
var s5scrollwidth = <?php echo ($width) - 188; ?>;
</script>
<script language="javascript" type="text/javascript" src="<?php echo $LiveSite ?>/modules/mod_s5_image_scroller/s5_image_scroller/scroll.js"></script>
<script type="text/javascript">
	dw_scrollObj.speed = 30;
    function initScrollLayer() {
        var scroller = new dw_scrollObj('content', 'content_in', 'content_in', 'hold');}
    window.onload = function() {
        window.onload;
        initScrollLayer();
		<?php if ($autorotate == "yes") { ?>s5_scrollingcheck();<?php } ?>}
	
</script>
	

	
<?php if ($posttext != "") { ?>
	<br />
	<?php echo $posttext ?>
<?php } ?>

<div style="clear:both;"></div>
					<div id="middle_content" style="width:<?php echo $width?>px;padding-bottom:26px;" <?php if ($autorotate == "yes") { ?>onmouseover="s5_imagescrollstop();" onmouseout="s5_imagescrollgo();"<?php } ?>>
                        <div id="scrollbar_top" style="display:none;">
                            <div id="left_top"></div>
                            <div id="track_top"></div>                            
                            <div id="right_top"></div>
                        </div>
                        <div id="hold" style="width:<?php echo ($width) - 29?>px;height:<?php echo ($height) + 40?>px;">
                            <div id="content" style="width:<?php echo ($width) - 29?>px;height:<?php echo ($height) + 40?>px;">
                                <div id="content_in" style="min-width:<?php echo ($width) - 59?>px;height:<?php echo ($height) + 30?>px;">
									
								
								<?php if ($image1url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>		
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">								
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image1link != "") { ?> href="<?php echo $image1link ?>" target="<?php echo $image1target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image1keywords ?>" src="<?php echo $image1url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image1title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image2url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image2link != "") { ?> href="<?php echo $image2link ?>" target="<?php echo $image2target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image2keywords ?>" src="<?php echo $image2url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image2title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>

								<?php if ($image3url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image3link != "") { ?> href="<?php echo $image3link ?>" target="<?php echo $image3target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image3keywords ?>" src="<?php echo $image3url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image3title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image4url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image4link != "") { ?> href="<?php echo $image4link ?>" target="<?php echo $image4target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image4keywords ?>" src="<?php echo $image4url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image4title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image5url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image5link != "") { ?> href="<?php echo $image5link ?>" target="<?php echo $image5target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image5keywords ?>" src="<?php echo $image5url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image5title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image6url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image6link != "") { ?> href="<?php echo $image6link ?>" target="<?php echo $image6target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image6keywords ?>" src="<?php echo $image6url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image6title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image7url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image7link != "") { ?> href="<?php echo $image7link ?>" target="<?php echo $image7target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image7keywords ?>" src="<?php echo $image7url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image7title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image8url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image8link != "") { ?> href="<?php echo $image8link ?>" target="<?php echo $image8target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image8keywords ?>" src="<?php echo $image8url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image8title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
		

								<?php if ($image9url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image9link != "") { ?> href="<?php echo $image9link ?>" target="<?php echo $image9target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image9keywords ?>" src="<?php echo $image9url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image9title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>

								<?php if ($image10url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image10link != "") { ?> href="<?php echo $image10link ?>" target="<?php echo $image10target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image10keywords ?>" src="<?php echo $image10url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image10title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>

								<?php if ($image11url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image11link != "") { ?> href="<?php echo $image11link ?>" target="<?php echo $image11target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image11keywords ?>" src="<?php echo $image11url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image11title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>
								
								<?php if ($image12url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image12link != "") { ?> href="<?php echo $image12link ?>" target="<?php echo $image12target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image12keywords ?>" src="<?php echo $image12url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image12title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>								
								
								<?php if ($image13url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image13link != "") { ?> href="<?php echo $image13link ?>" target="<?php echo $image13target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image13keywords ?>" src="<?php echo $image13url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image13title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>									
								
								<?php if ($image14url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image14link != "") { ?> href="<?php echo $image14link ?>" target="<?php echo $image14target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image14keywords ?>" src="<?php echo $image14url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image14title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>		
								
								<?php if ($image15url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image15link != "") { ?> href="<?php echo $image15link ?>" target="<?php echo $image15target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image15keywords ?>" src="<?php echo $image15url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image15title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>									
								
								<?php if ($image16url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image16link != "") { ?> href="<?php echo $image16link ?>" target="<?php echo $image16target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image16keywords ?>" src="<?php echo $image16url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image16title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>									

								<?php if ($image17url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image17link != "") { ?> href="<?php echo $image17link ?>" target="<?php echo $image17target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image17keywords ?>" src="<?php echo $image17url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image17title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>	
								
								<?php if ($image18url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image18link != "") { ?> href="<?php echo $image18link ?>" target="<?php echo $image18target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image18keywords ?>" src="<?php echo $image18url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image18title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>									
								
								<?php if ($image19url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image19link != "") { ?> href="<?php echo $image19link ?>" target="<?php echo $image19target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image19keywords ?>" src="<?php echo $image19url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image19title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>		
								
								<?php if ($image20url != "") { ?>
								<div style="width:<?php echo $imagewidth ?>;" class="s5_imagerot_wrap">
									<div class="s5_imagerot_tl"><div class="s5_imagerot_tr"><div class="s5_imagerot_tm"></div></div></div>
									<div class="s5_imagerot_mb" style="width:<?php echo $imagewidth ?>;height:<?php echo ($height)?>px;">
									<div class="s5_imagerot_hover">	
										<a style="padding:0px; margin:0px;border:none"<?php if ($image20link != "") { ?> href="<?php echo $image20link ?>" target="<?php echo $image20target ?>"<?php } ?>><img style="border:none; padding:0px; margin:0px;" alt="<?php echo $image20keywords ?>" src="<?php echo $image20url ?>"></img></a>
										<br/><br/>
										<span class="s5_imagerot_text"><?php echo $image20title ?></span>
									</div>
									</div>
									<div class="s5_imagerot_bl"><div class="s5_imagerot_br"><div class="s5_imagerot_bm"></div></div></div>
								</div>
								<?php } ?>									
                                </div>
								
								<div style="clear:both;"></div>	
                            </div>
                        </div>
					
					
						<div id="leftside">
							<div id="left_bottom"></div>
						</div>
                        <div id="scrollbar_bottom" style="width:<?php echo ($width) - 52?>px;">
						
                            <div id="track_bottom" style="width:<?php echo ($width) - 56?>px;"></div>                            
                           
                        </div>
						<div id="rightside">
							 <div id="right_bottom"></div>
						</div>
						
                    </div>





